import { UUID2 } from "../../../utils/utils";

export const libTypeList = () => {
  return [{
    id: UUID2(8),
    name: "边框",
    icon: "icon-biankuang",
    type: "border"
  }, {
    id: UUID2(8),
    name: "装饰",
    icon: "icon-zhuangshiqi",
    type: "decoration"
  }, {
    id: UUID2(8),
    name: "图表",
    icon: "icon-tubiao",
    type: "chart"
  }, {
    id: UUID2(8),
    name: "地图",
    icon: "icon-ditu",
    type: "map"
  }, {
    id: UUID2(8),
    name: "信息",
    icon: "icon-text",
    type: "info"
  }, {
    id: UUID2(8),
    name: "表格",
    icon: "icon-chart",
    type: "list"
  }, {
    id: UUID2(8),
    name: "交互",
    icon: "icon-jiaohu",
    type: "interactive"
  }, {
    id: UUID2(8),
    name: "媒体",
    icon: "icon-meiti",
    type: "media"
  }, {
    id: UUID2(8),
    name: "其他",
    icon: "icon-doc-other",
    type: "other"
  }];
};
export const libDetailList = (type) => {
  let list = [];
  switch (type) {
    case "border":
      list = [{
        type: "border-all",
        name: "全部",
        data: [{
          name: "DvBorderBox1",
          alias: "border-box1",
          img: `border-box-1.png`,
          used: true
        }, {
          name: "DvBorderBox2",
          alias: "border-box2",
          img: `border-box-2.png`,
          used: true
        }, {
          name: "DvBorderBox3",
          alias: "border-box3",
          img: `border-box-3.png`,
          used: true
        }, {
          name: "DvBorderBox4",
          alias: "border-box4",
          img: `border-box-4.png`,
          used: true
        }, {
          name: "DvBorderBox5",
          alias: "border-box5",
          img: `border-box-5.png`,
          used: true
        }, {
          name: "DvBorderBox6",
          alias: "border-box6",
          img: `border-box-6.png`,
          used: true
        }, {
          name: "DvBorderBox7",
          alias: "border-box7",
          img: `border-box-7.png`,
          used: true
        }, {
          name: "DvBorderBox8",
          alias: "border-box8",
          img: `border-box-8.png`,
          used: true
        }, {
          name: "DvBorderBox9",
          alias: "border-box9",
          img: `border-box-9.png`,
          used: true
        }, {
          name: "DvBorderBox10",
          alias: "border-box10",
          img: `border-box-10.png`,
          used: true
        }, {
          name: "DvBorderBox11",
          alias: "border-box11",
          img: `border-box-11.png`,
          used: true
        }, {
          name: "DvBorderBox12",
          alias: "border-box12",
          img: `border-box-12.png`,
          used: true
        }, {
          name: "DvBorderBox13",
          alias: "border-box13",
          img: `border-box-13.png`,
          used: true
        }]
      }];
      break;
    case "decoration":
      list = [{
        type: "decoration-all",
        name: "全部",
        data: [{
          name: "decoration1",
          alias: "decoration1",
          img: `full-screen.png`,
          used: false
        }, {
          name: "decoration2",
          alias: "decoration2",
          img: `full-screen.png`,
          used: false
        }, {
          name: "decoration3",
          alias: "decoration3",
          img: `full-screen.png`,
          used: false
        }, {
          name: "decoration4",
          alias: "decoration4",
          img: `full-screen.png`,
          used: false
        }, {
          name: "decoration5",
          alias: "decoration5",
          img: `full-screen.png`,
          used: false
        }, {
          name: "decoration6",
          alias: "decoration6",
          img: `full-screen.png`,
          used: false
        }, {
          name: "decoration7",
          alias: "decoration7",
          img: `full-screen.png`,
          used: false
        }, {
          name: "decoration8",
          alias: "decoration8",
          img: `full-screen.png`,
          used: false
        }, {
          name: "decoration9",
          alias: "decoration9",
          img: `full-screen.png`,
          used: false
        }, {
          name: "decoration10",
          alias: "decoration10",
          img: `full-screen.png`,
          used: false
        }, {
          name: "decoration11",
          alias: "decoration11",
          img: `full-screen.png`,
          used: false
        }, {
          name: "decoration12",
          alias: "decoration12",
          img: `full-screen.png`,
          used: false
        }]
      }];
      break;

    case "chart":
      list = [
        {
          type: "bar",
          name: "柱状图",
          data: [{
            name: "VBasicBar",
            alias: "柱状图",
            img: `basic-bar.png`,
            used: false
          }, {
            name: "VArcBar",
            alias: "玉环图",
            img: `arc-bar.png`,
            used: false
          }, {
            name: "VLineBarChart",
            alias: "折线柱图",
            img: `line-bar-chart.png`,
            used: false
          }, {
            name: "VBarWithLine",
            alias: "折线柱图(多)",
            img: `bar-with-line.png`,
            used: false
          }]
        }, {
          type: "horizontal-bar",
          name: "条形图",
          data: [{
            name: "VHoriBasicBar",
            alias: "水平基本柱状图",
            img: `hori-basic-bar.png`,
            used: false
          }]
        }, {
          type: "line",
          name: "折线图",
          data: [{
            name: "VBasicLine",
            alias: "基本折线图",
            img: `basic-line.png`,
            used: false
          }]
        }, {
          type: "area",
          name: "区域图",
          data: [{
            name: "VBasicArea",
            alias: "区域图",
            img: `basic-area.png`,
            used: false
          }]
        }, {
          type: "pie",
          name: "饼环图",
          data: [{
            name: "VBasicPie",
            alias: "基本饼图",
            img: `basic-pie.png`,
            used: false
          }, {
            name: "VPieOneValue",
            alias: "指标占比饼图",
            img: `pie-one-value.png`,
            used: false
          }]
        }, {
          type: "relation",
          name: "关系图",
          data: [{
            name: "VTree",
            alias: "树图",
            img: `tree.png`,
            used: false
          }]
        }, {
          type: "chart-other",
          name: "其他",
          data: [{
            name: "VWordCloud",
            alias: "词云",
            img: `word-cloud.png`,
            used: false
          }]
        }];
      break;
    case "map":
      list = [{
        type: "map-2d",
        name: "平面地图",
        data: [{
          name: "VChina2d",
          alias: "基础平面地图",
          img: `2d-china.png`,
          used: false,
          children: [
            {
              name: "VChina2dBubbles",
              alias: "呼吸气泡层",
              img: `2d-china-bubbles.png`,
              used: false
            }, {
              name: "VChina2dFlyLines",
              alias: "飞线层",
              img: `2d-china-fly-lines.png`,
              used: false
            }
          ]
        }]
      }, {
        type: "map-3d",
        name: "3D地图",
        data: [{
          name: "VWorld3d",
          alias: "3D平面世界地图",
          img: `3d-world.png`,
          used: false
        }]
      }];
      break;
    case "info":
      list = [{
        type: "info-all",
        name: "全部",
        data: [{
          name: "VMainTitle",
          alias: "通用标题",
          img: `main-title.png`,
          used: true
        }, {
          name: "VMarquee",
          alias: "跑马灯",
          img: `marquee.png`,
          used: false
        }, {
          name: "VNumberTitleFlop",
          alias: "数字翻牌器",
          img: `number-title-flop.png`,
          used: true
        }, {
          name: "VParagraph",
          alias: "多行文本",
          img: `paragraph.png`,
          used: false
        }, {
          name: "VTimer",
          alias: "时间器",
          img: `timer.png`,
          used: false
        }]
      }];
      break;
    case "list":
      list = [{
        type: "carousel",
        name: "轮播",
        data: [{
          name: "VCarouselTable",
          alias: "轮播列表",
          img: `carousel-table.png`,
          used: false
        }, {
          name: "VTableBar",
          alias: "轮播列表柱状图",
          img: `table-bar.png`,
          used: false
        }]
      }];
      break;
    case "interactive":
      list = [{
        type: "interactive-all",
        name: "全部",
        data: [{
          name: "VFullScreen",
          alias: "全屏切换",
          img: `full-screen.png`,
          used: false
        }, {
          name: "VTabList",
          alias: "Tab列表",
          img: `tab-list.png`,
          used: false
        }, {
          name: "VPercentageBar",
          alias: "进度条",
          img: `percentage-bar.png`,
          used: false
        }]
      }];
      break;
    case "media":
      list = [{
        type: "media-bg",
        name: "背景",
        data: [{
          name: "VBgBox",
          alias: "自定义背景块",
          img: `bg-box.png`,
          used: true
        }]
      }, {
        type: "media-border",
        name: "边框",
        data: [{
          name: "VBorderBox",
          alias: "边框",
          img: `border-box.png`,
          used: false
        }]
      }, {
        type: "media-decoration",
        name: "装饰",
        data: [{
          name: "VDecoration",
          alias: "装饰",
          img: `decoration.png`,
          used: false
        }]
      }, {
        type: "media-img",
        name: "图片",
        data: [{
          name: "VMainImg",
          alias: "单张图片",
          img: `main-img.png`,
          used: false
        }]
      }];
      break;
    case "other":
      list = [{
        type: "other-filter",
        name: "选择器",
        data: [{
          name: "VDatePicker",
          alias: "日期选择器",
          img: `date-picker.jpg`,
          used: true
        }, {
          name: "VTabSelect",
          alias: "Tab选择器",
          img: `tab-select.png`,
          used: false
        }]
      }];
      break;
    default:
      break;
  }
  return list;
};
